package com.example.knowman.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.knowman.ReturnMessage.Message;
import com.example.knowman.ReturnMessage.MessageBackKnowMainId;
import com.example.knowman.dao.knowMainEx;
import com.example.knowman.dao.knowMainEx9_5ByPeriod;
import com.example.knowman.dao.knowMainExDaBiao;
import com.example.knowman.entity.knowCategory;
import com.example.knowman.entity.knowMain;
import com.example.knowman.entity.staffList;


import java.util.List;

public interface IKnowMainService extends IService<knowMain>{


    Integer getCount(knowMainEx9_5ByPeriod temp, List<knowCategory> kcL, Integer timeType);



    MessageBackKnowMainId Insert(String knowTitle, String knowContent, Integer knowCateId, String staffCode, String auditUser);

    

    Message updateExceptSC(Integer knowId, String knowTitle, String knowContent, Integer knowCateId, String auditUser, Integer knowState, Integer readCount, Integer praiseCount, Integer commentCount);

    Message deleteByknowId(Integer knowId);

    List<knowMain> getForSum(Integer timeType, String period);

    IPage<knowMainEx> getAuditsKM(Integer pageNum, Integer pageSize, String knowTitle, String auditUser, Integer knowState, List<staffList> SL);

    IPage<knowMainEx> getAll(Integer pageNum, Integer pageSize, String knowTitle, String staffCode, Integer knowCateId, Integer readCount, Integer praiseCount, Integer commentCount, Integer knowState,String myStaffCode);

    knowMainExDaBiao getByKnowId(Integer knowId);

    Message check(Integer knowId);


//    Integer returnContainKnowCateIdCount(Integer knowCateId);
}
